home *** CD-ROM | disk | FTP | other *** search
- Path: isonews.bbn.hp.com!hpbblb!news
- From: Matthias Dittrich <matti>
- Newsgroups: comp.lang.c
- Subject: Re: string search?
- Date: 29 Mar 1996 09:12:58 GMT
- Organization: Hewlett-Packard Co.
- Message-ID: <4jg9iq$h4r@hpbblb.bbn.hp.com>
- References: <4jbnfk$cuq@dfw-ixnews6.ix.netcom.com>
- NNTP-Posting-Host: trabant.bbn.hp.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.07 9000/712)
- X-URL: news:4jbnfk$cuq@dfw-ixnews6.ix.netcom.com
-
- rmor1@ix.netcom.com(Ricardo Mor ) wrote:
- > How can I search a string of character in another string? for
- >example...
- >
- >
- > string1 = "NEXT_TIME";
- > string2 = "TIME";
- >
- > how can I search for string1 in string2?
- >
- Use strstr().
-
- Good luck,
- Matthias
-
-